import service from "../checkApi/request";
// 班次管理列表
// export function classes_list(payload = {}){
//     return service.get('/classes',{params:payload})
// }
export function classes_list(payload = {}){
    return service.get('/api/classes',{params:payload})
}
// 新增
// export function classes_add(payload = {}){
//     return service.post('/classes',payload)
// }
export function classes_add(payload = {}){
    return service.post('/api/classesadd',payload)
}
// 删除
// export function classes_del(payload = {}){
//     return service.delete(`/classes/${payload}`)
// }
export function classes_del(payload = {}){
    return service.post(`/api/delclasses/${payload}`)
}

// 搜索
// export function classes_search(payload = {}){
//     return service.get(`/classes?classes_like=${payload}`)
// }
export function classes_search(payload = {}){
    return service.get(`/api/searchclasses`,{params:payload})
}
// 修改
// export function classes_update(payload = {}){
//     return service.patch(`/classes/${payload.id}`,payload)
// }
export function classes_update(payload = {}){
    return service.post(`/api/classesedit`,payload)
}